export const tableItem = [
  {
    prop: 'userId',
    label: '用户ID',
    minWidth: 80,
  },
  {
    prop: 'avatar',
    label: '用户头像',
    width: 80,
    slotName: 'avatarSlot',
  },
  {
    prop: 'username',
    label: '用户名',
    minWidth: 90,
  },
  {
    prop: 'nickname',
    label: '用户昵称',
    minWidth: 90,
  },
  {
    prop: 'openid',
    label: '微信openid',
    minWidth: 120,
  },
  {
    prop: 'tokens',
    label: '剩余调用次数',
    width: 100,
  },
  {
    prop: 'description',
    label: '用户描述',
    minWidth: 120,
  },
  {
    prop: 'mobile',
    label: '手机号',
    width: 120,
  },
  {
    prop: 'status',
    label: '状态',
    width: 100,
    slotName: 'statusSlot',
  },
  {
    prop: 'email',
    label: '用户邮箱',
    width: 150,
  },
  {
    prop: 'createdAt',
    label: '创建时间',
    width: 180,
  },
  {
    prop: 'updatedAt',
    label: '更新时间',
    width: 180,
  }
]

export default () => {
  return {
    tableItem,
    elTableConfig: {
      tooltipOptions: {
        popperClass: 'lmw_popper',
        effect: 'light',
      },
      rowKey: 'userId',
    },
    showIndex: false,
    showChoose: true,
    pagination: true,
  }
}
